<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>公用CSS文件</title>
<style type="text/css">
</style>
<script type="text/javascript">
</script>
<link href="./css/common.css" rel="stylesheet" />
<script type="text/javascript" src="./js/util.js"></script>
<script type="text/javascript">
function validateForm(){
	var username=$("userid");
	var password=$("passwd");
	if(username.value.trim()==''){
		alert("请填写好帐号");
		$select(username);
		//username.focus();
		return false;
	}
	if(password.value.trim()==''){
		alert("请填写好密码");
		$select(password);
		//password.focus();
		return false;
	}
	return true;
}

</script>
</head>
<body>
这是一个超链接：<a href="http://www.baidu.com">百度一下，你就知道</a>
<hr/>
<form action="" method="post" onsubmit="return validateForm()">
帐号：<input type="text" name="username" id="userid"/><br/>
密码：<input type="password" name="password" id="passwd"/><br/>
<input type="image" src="./images/login.png" />
<!-- 
<input type="submit" value="登录" />
<input type="reset" value="重置" />
 -->
</form>
<hr/>
</body>
</html>